home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / grphwiz.dxr / 00075_create graph button.ls < prev    next >
Encoding:
Text File  |  2000-01-14  |  577 b   |  26 lines

  1. property ancestor, pMIAW
  2. global gEnvironObj, gGraph
  3.  
  4. on new me, buttonName, castName, theChannel, theStageLoc, descendant
  5.   if objectp(descendant) then
  6.     ancestor = new(script("generic button"), buttonName, castName, theChannel, theStageLoc, descendant)
  7.   else
  8.     ancestor = new(script("generic button"), buttonName, castName, theChannel, theStageLoc, me)
  9.   end if
  10.   return me
  11. end
  12.  
  13. on setMIAW me, miaw
  14.   pMIAW = miaw
  15.   return me
  16. end
  17.  
  18. on performFunction me
  19.   if objectp(checkData(gGraph)) then
  20.     tell the stage
  21.       openGraphWindow()
  22.     end tell
  23.   end if
  24.   return me
  25. end
  26.